home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 07d.dir / 00001.ls next >
Encoding:
Text File  |  1999-04-02  |  1.8 KB  |  68 lines

  1. on startMovie
  2.   global gKnobSprite, gSendMovie, gKnobState, qtChan
  3.   puppetSprite(48, 1)
  4.   qtChan = 11
  5.   sprite(qtChan).volume = 256
  6.   preLoad(qtChan - 1)
  7.   set the mouseDownScript to EMPTY
  8.   set the mouseUpScript to EMPTY
  9.   sprite(18).visible = 0
  10.   sprite(19).visible = 0
  11.   gKnobSprite = 14
  12.   gSendMovie = "07d"
  13.   gKnobState = 1
  14.   puppetSprite(gKnobSprite, 1)
  15.   setUpKnob()
  16. end
  17.  
  18. on idle
  19.   global gCursorReady
  20.   if gCursorReady = 1 then
  21.     cursor(200)
  22.     checkCursors()
  23.     set the locH of sprite 48 to the mouseH
  24.     set the locV of sprite 48 to the mouseV
  25.     updateStage()
  26.   end if
  27. end
  28.  
  29. on checkCursors
  30.   global gMagCursor
  31.   set the castNum of sprite 48 to the number of member "curs1"
  32.   repeat with i = 5 to 9
  33.     if rollOver(i) then
  34.       set the castNum of sprite 48 to the number of member "hotCursor"
  35.     end if
  36.   end repeat
  37.   if rollOver(10) then
  38.     set the castNum of sprite 48 to the number of member "curs1"
  39.   end if
  40.   repeat with i = 15 to 17
  41.     if rollOver(i) then
  42.       set the castNum of sprite 48 to the number of member "hotCursor"
  43.     end if
  44.   end repeat
  45.   if rollOver(29) or rollOver(30) then
  46.     set the castNum of sprite 48 to the number of member "hotCursor"
  47.   end if
  48.   repeat with i = 32 to 34
  49.     if rollOver(i) then
  50.       set the castNum of sprite 48 to the number of member "hotCursor"
  51.     end if
  52.   end repeat
  53.   if rollOver(35) then
  54.     set the castNum of sprite 48 to the number of member "linkCurs"
  55.   end if
  56.   repeat with i = 40 to 42
  57.     if rollOver(i) then
  58.       set the castNum of sprite 48 to the number of member "hotCursor"
  59.     end if
  60.   end repeat
  61.   if the castNum of sprite 45 and rollOver(45) then
  62.     set the castNum of sprite 48 to the number of member "magcursor"
  63.   end if
  64.   if the castNum of sprite 46 and rollOver(46) then
  65.     set the castNum of sprite 48 to the number of member "demagcursor"
  66.   end if
  67. end
  68.